package com.ximcontroller.models.elements;

import java.util.Observable;


public abstract class XIMSystem extends Observable implements java.io.Serializable
{
	static final long serialVersionUID = 200911280035L;
	
	private XIM owner;
	
	private int id;
	private String name;
	
	public XIMSystem()
	{
	}
	
	public XIMSystem(XIM owner)
	{
		this.owner = owner;
	}
	
	public XIMSystem(int id, String name, XIM owner)
	{
		this.id = id;
		this.name = name;
		this.owner = owner;
	}
	
	public int getID()
	{
		return this.id;
	}
	
	public void setID(int id)
	{
		this.id = id;
		this.notifyObservers();
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public void setName(String name)
	{
		this.name = name;
		this.notifyObservers();
	}
	
	public XIM getOwner()
	{
		return this.owner;
	}
	
	public void setOwner(XIM owner)
	{
		this.owner = owner;
	}
}
